home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
oop_tp55.zip
/
LIST1_2.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-12-03
|
1KB
|
67 lines
type
XYZ = object
a : integer;
b : real;
c : string[32];
procedure Init( aa : integer; bb : real;
cc : string );
end;
procedure XYZ.Init( aa : integer; bb : real;
cc : string );
begin
a := aa;
b := bb;
c := cc;
end;
var
R : XYZ;
begin
R.Init( 1234, 2.712,
'The string is 32 characters long');
writeln( 'The integer value is ', R.a );
writeln( 'The string value is "', R.c, '"' );
writeln( 'The real value is ', R.b );
end.